package interfaces;

import builder.MetricBuilder;
import response.Response;

import java.io.IOException;

public interface Client {

    public final static String POST_API = "/api/put";

    /**
     * Sends metrics from the builder to the KairosDB server.
     *
     * @param builder
     *            metrics builder
     * @return response from the server
     * @throws IOException
     *             problem occurred sending to the server
     */
    Response pushMetrics(MetricBuilder builder) throws IOException;

}
